﻿using System;

using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Silvermoon.Controls.classes
{
    internal static class ControlUtil
    {
        public static Rectangle GetScreenBounds(Control c)
        {
            Rectangle r = c.Bounds;
            while (c.Parent != null)
            {
                c = c.Parent;
                r.Offset(c.Left, c.Top);
            }
            return r;
        }
    }
}
